package Adapter;

import java.util.ArrayList;
import java.util.List;

import DomainPackage.*;
import Sistem.Register;

public class YolcuUcusAdapter {

	public static List<YolcuUcus> getAllYolcuUcus(){
        List<Object> objectList = Register.getAll(YolcuUcus.class);
        //as all getAll functions, we have to cast to according class
        List<YolcuUcus> yolcuucusList = new ArrayList<YolcuUcus>();
        for(Object temp:objectList){
                yolcuucusList.add((YolcuUcus)temp);
        }
        return yolcuucusList;
	}
}
